﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace ConsoleAppDemo.LinqDemo
{
    public static class LambdaDemo
    {
        delegate bool Del(string x,int y);

        delegate void DelString(string s);


        public static void Entry()
        {
            Del curDel = (x ,y)=> x.Length>y;

//            Expression<Del> myET = x => x * x;

            DelString strDel = p =>
                                   {
                                       p = p + "Hello";
                                       Console.WriteLine(p);
                                   };
            strDel("chenxm ");
            Console.WriteLine(curDel("44",6));

        }
    }
}
